﻿@{
    Layout = null;
    var eid = ViewBag.eid;
}
<script src="~/Scripts/MGJJS/AntiFake/AntiPageConfigList.js"></script>
<div class="mtlr15">
    <div id="SearchForm">
        <div class="row">
            <div class="col-lg-8 col-md-8 col-sm-8" style="padding:0">
                <button type="button" class="btn btn-success" id="0" onclick="$.MGJ.AntiPageConfigList.Edit(this)">
                    <i class="glyphicon glyphicon-plus"></i>
                    新增
                </button>
                @*<button type="button" class="btn btn-success" >
                    <i class="glyphicon glyphicon-share-alt"></i>
                    导出excel
                </button>*@
            </div>
            <div class="col-lg-4 col-md-4 col-sm-4">
                <div class="input-group">
                    <input type="text" class="form-control" id="search" placeholder="标题名称" onkeydown="if (event.keyCode == 13) { $.MGJ.AntiPageConfigList.Ajax_AntiPageList(1); }">
                    <span class="input-group-addon" onclick="$.MGJ.AntiPageConfigList.Ajax_AntiPageList(1);">
                        <span class="glyphicon glyphicon-search"></span>
                    </span>
                </div>
            </div>
        </div>
    </div>
    <div id="Table">
        <div class="overflow">
            <table class="table table-hover table-bordered">
                <thead>
                    <tr>
                        <th width="30px"><input class="AllClickCheckbox" type="checkbox"></th>
                        <th>标题名称</th>
                        <th>轮播图时间</th>
                        <th>操作时间</th>
                        <th>操作</th>
                    </tr>
                </thead>
                <tbody id="AntiafkLisTable" style="display:none;" binding="{'pageId':'ShoppingPager','pageCallback':'$.MGJ.AntiPageConfigList.Ajax_AntiPageList','emptyHtml':User_EmptyHtml}">
                    <tr>
                        <td><input class="AllClickChild" type="checkbox"></td>
                        <td binding="{'text':'Title'}"></td>
                        <td binding="{'text':'TimeOptions'}"></td>
                        <td binding="{'text':'ChangeDate','textHandle':'datetime'}"></td>
                        <td>
                            @*<a href="#" binding="{'Id':'Id'}" onclick="$.MGJ.Common.loadurl(this, '/AntiFake/CreateAntiFakePage2')">编辑</a>*@
                            <a href="#" binding="{'Id':'ID'}" onclick="$.MGJ.AntiPageConfigList.Edit(this)">编辑</a>
                            <a href="#" binding="{'Id':'ID'}" onclick="$.MGJ.AntiPageConfigList.Delete(this)">删除</a>
                            <a href="#" binding="{'Id':'ID'}" onclick="$.MGJ.AntiPageConfigList.SetDefault(this)">设为默认查询页面</a>
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
        <div id="ShoppingPager"></div>
    </div>
</div>
<script>
    var ColspanNub = $(".table.table-hover.table-bordered").find("tr").children("td").length
    window.User_EmptyHtml = '<tr><td colspan="' + ColspanNub + '"><p class="no-result">无符合条件的数据结果</p></td></tr>';
    $(function () {
        $.MGJ.AntiPageConfigList.Ajax_AntiPageList(1);
    })
</script>
